
/**
  * 字段解释
  *  forwardSectionLens  正向路段距离
  *  reverseSectionLens  反向路段距离
  *   crossInfo  路口信息
  * forward  reverse  路口信息
  * crossId: 路口id
  * bandwidth: 在干线中与下一个路口的带宽（干线最后一个路口当前字段为空），单位：秒
  * phaseDiffTimes: 相位差时间，单位：秒
  * schemeId: 方案ID，平台维护的唯一标识
  * schemeCycle: 方案周期长，单位：秒
  * greenStartTime: 协调相位绿灯时长，单位：秒
  * greenPreTime: 方案周期开始到协调相位绿灯开始前的时长，单位：秒
  */

const greenWareData2 = {
  "forwardSectionLens": [931,1022,1716,947,1954],
  "reverseSectionLens": [931,1022,1716,947,1954],
  "crossInfo": [{
          "crossId": "501",
          "crossName": "501"
      }, {
          "crossId": "502",
          "crossName": "502"
      },{
          "crossId": "503",
          "crossName": "503"
      }, {
          "crossId": "504",
          "crossName": "504"
      },{
          "crossId": "505",
          "crossName": "505"
      }, {
          "crossId": "506",
          "crossName": "506"
      }
  ],
  "forward": [{
          "crossId": "501",
          "bandwidth": 61,
          "phaseDiffTimes": 117,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 61,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 62,
          "phaseDiffTimes": 43,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 62,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 53,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 53,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 59,
          "phaseDiffTimes": 43,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 59,
          "greenPreTime": 30,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 56,
          "phaseDiffTimes": 78,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 56,
          "greenPreTime": 69,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 50,
          "phaseDiffTimes": 6,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 50,
          "greenPreTime": 0,
    "speed": 60
      }
  ],
  "reverse": [{
          "crossId": "501",
          "bandwidth": 61,
          "phaseDiffTimes": 117,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 61,
          "greenPreTime": 30,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 61,
          "phaseDiffTimes": 43,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 61,
          "greenPreTime": 29,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 53,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 53,
          "greenPreTime": 27,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 60,
          "phaseDiffTimes": 43,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 60,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 56,
          "phaseDiffTimes": 78,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 56,
          "greenPreTime": 41,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 50,
          "phaseDiffTimes": 6,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 50,
          "greenPreTime": 25,
    "speed": 60
      }
  ]
}

const greenWareData1 = {
  "forwardSectionLens": [931,1022,1716,947,1954],
  "reverseSectionLens": [931,1022,1716,947,1954],
  "crossInfo": [{
          "crossId": "501",
          "crossName": "501"
      }, {
          "crossId": "502",
          "crossName": "502"
      },{
          "crossId": "503",
          "crossName": "503"
      }, {
          "crossId": "504",
          "crossName": "504"
      },{
          "crossId": "505",
          "crossName": "505"
      }, {
          "crossId": "506",
          "crossName": "506"
      }
  ],
  "forward": [{
          "crossId": "501",
          "bandwidth": 86,
          "phaseDiffTimes": 118,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 86,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 101,
          "phaseDiffTimes": 114,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 101,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 98,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 98,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 98,
          "phaseDiffTimes": 118,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 98,
          "greenPreTime": 30,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 94,
          "phaseDiffTimes": 70,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 94,
          "greenPreTime": 80,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 90,
          "phaseDiffTimes": 145,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 90,
          "greenPreTime": 0,
    "speed": 60
      }
  ],
  "reverse": [{
          "crossId": "501",
          "bandwidth": 85,
          "phaseDiffTimes": 118,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 85,
          "greenPreTime": 34,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 97,
          "phaseDiffTimes": 114,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 97,
          "greenPreTime": 32,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 94,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 94,
          "greenPreTime": 34,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 100,
          "phaseDiffTimes": 118,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 100,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 99,
          "phaseDiffTimes": 70,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 99,
          "greenPreTime": 47,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 89,
          "phaseDiffTimes": 145,
          "schemeId": null,
          "schemeCycle": 174,
          "greenStartTime": 89,
          "greenPreTime": 29,
    "speed": 60
      }
  ]
}

// 俊堡 2025/01/09 提供的数据
const greenWareData = {
  "forwardSectionLens": [931,1022,1716,947,1954],
  "reverseSectionLens": [931,1022,1716,947,1954],
  "crossInfo": [{
          "crossId": "501",
          "crossName": "501"
      }, {
          "crossId": "502",
          "crossName": "502"
      },{
          "crossId": "503",
          "crossName": "503"
      }, {
          "crossId": "504",
          "crossName": "504"
      },{
          "crossId": "505",
          "crossName": "505"
      }, {
          "crossId": "506",
          "crossName": "506"
      }
  ],
  "forward": [{
          "crossId": "501",
          "bandwidth": 54,
          "phaseDiffTimes": 121,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 54,
          "phaseDiffTimes": 68,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 53,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 53,
          "greenPreTime": 0,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 54,
          "phaseDiffTimes": 68,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 27,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 54,
          "phaseDiffTimes": 76,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 71,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 50,
          "phaseDiffTimes": 6,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 50,
          "greenPreTime": 0,
    "speed": 60
      }
  ],
  "reverse": [{
          "crossId": "501",
          "bandwidth": 54,
          "phaseDiffTimes": 121,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 27,
    "speed": 60
      }, {
          "crossId": "502",
          "bandwidth": 54,
          "phaseDiffTimes": 68,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 27,
    "speed": 60
      },{
          "crossId": "503",
          "bandwidth": 53,
          "phaseDiffTimes": 0,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 53,
          "greenPreTime": 27,
    "speed": 60
      }, {
          "crossId": "504",
          "bandwidth": 54,
          "phaseDiffTimes": 68,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 0,
    "speed": 60
      },{
          "crossId": "505",
          "bandwidth": 54,
          "phaseDiffTimes": 76,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 54,
          "greenPreTime": 44,
    "speed": 60
      }, {
          "crossId": "506",
          "bandwidth": 50,
          "phaseDiffTimes": 6,
          "schemeId": null,
          "schemeCycle": 125,
          "greenStartTime": 50,
          "greenPreTime": 25,
    "speed": 60
      }
  ]
}



